import React from 'react';
import { Route } from 'react-router-dom';

import ErrorBoundaryRoutes from 'app/shared/error/error-boundary-routes';

import ActivityProperty from './activity-property';
import ActivityPropertyDetail from './activity-property-detail';
import ActivityPropertyUpdate from './activity-property-update';
import ActivityPropertyDeleteDialog from './activity-property-delete-dialog';

const ActivityPropertyRoutes = () => (
  <ErrorBoundaryRoutes>
    <Route index element={<ActivityProperty />} />
    <Route path="new" element={<ActivityPropertyUpdate />} />
    <Route path=":id">
      <Route index element={<ActivityPropertyDetail />} />
      <Route path="edit" element={<ActivityPropertyUpdate />} />
      <Route path="delete" element={<ActivityPropertyDeleteDialog />} />
    </Route>
  </ErrorBoundaryRoutes>
);

export default ActivityPropertyRoutes;
